package com.chen.service.impl;
import com.chen.mapper.AdminMapper;
import com.chen.pojo.Admin;
import com.chen.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    //自动装配
    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin getByUser(String username) {
        return adminMapper.getByUser(username);
    }
}
